using System.Xml;

namespace ICSharpCode.TextEditor.Document
{
	public class PrevMarker
	{
		private string what;

		private HighlightColor color;

		private bool markMarker = false;

		public string What => this.what;

		public HighlightColor Color => this.color;

		public bool MarkMarker => this.markMarker;

		public PrevMarker(XmlElement mark)
		{
			this.color = new HighlightColor(mark);
			this.what = mark.InnerText;
			if (mark.Attributes["markmarker"] != null)
			{
				this.markMarker = bool.Parse(mark.Attributes["markmarker"]!.InnerText);
			}
		}
	}
}
